import app as robot_script

class Audio:

    def __init__(self, framework):
        self.framework = framework
        self.succeed_state = False

    # 设置音量
    def set_volume(self, volume):
        if self.framework.cyberdog_subscribe is not None:
            request = self.framework.cyberdog_pb2.TokenPass_Request()
            request.ask = self.framework.cyberdog_pb2.TokenPass_Request.ASK_SET_VOLUME
            request.vol = volume
            self.framework.cyberdog_subscribe.sendAiToken(request)

